<%--
  Created by IntelliJ IDEA.
  User: oooo
  Date: 2018/5/14
  Time: 19:37
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>

<style type="text/css">
    table {
        border-collapse: collapse;
    }

    td {
        border: 1px solid #000;
        padding: 10px;
    }
</style>

<p><a href="addUser.jsp">添加用户</a></p>

<table>
    <tr>
        <th>编号</th>
        <th>用户名</th>
        <th>密码</th>
        <th>操作一</th>
        <th>操作二</th>
    </tr>
    <%--userList少${}--%>
    <c:forEach var = "user" items="${userList}">
        <tr>
            <td>${user.id}</td>
            <td>${user.name}</td>
            <td>${user.password}</td>
            <td><a href="userUpdate.jsp?id=${user.id}">更新</a></td>
            <td><<a href="deleteUser.jsp?id=${user.id}">删除</a></td>
        </tr>
    </c:forEach>
</table>

</body>
</html>